import request from '@/utils/request'

// 获取表单字段
export function getFormField(params) {
  return request({
    url: '/cms/diyform/index',
    method: 'get',
    params
  })
}

// 提交表单
export function postForm(data) {
  return request({
    url: '/cms/diyform/postForm',
    method: 'post',
    data
  })
}

// 获取表单列表
export function getFormList(params) {
  return request({
    url: '/cms/diyform/formList',
    method: 'get',
    params
  })
}

// 获取表单详情
export function getFormShow(params) {
  return request({
    url: '/cms/diyform/show',
    method: 'get',
    params
  })
}